﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MuaChung.Models.RegisterCouponModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	RegisterCoupon
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>RegisterCoupon</h2>

    <table>
        <tr>            
            <th>
                Mã coupon
            </th>
            <th>
                Kết quả đăng ký
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>            
            <td>
                <%: item.maCoupon %>
            </td>
            <td>
                <%if (item.status)
                  {%>
                    Thành công
                <%}
                  else
                  {%>
                    Thất bại
                <%} %>
            </td>
        </tr>
    
    <% } %>

    </table>
</asp:Content>

